/*
 * @(#) $Header$
 *
 * Copyright (C) 2007  Forklabs Daniel Léonard
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

package ca.forklabs.media.jai.mock;

import javax.media.jai.ImageFunction;

/**
 * Class {@code MockImageFunction} is an empty implementation of class
 * {@link ImageFunction}.
 *
 * @author   <a href="mailto:forklabs at gmail.com?subject=ca.forklabs.media.jai.mock.MockImageFunction">Daniel Léonard</a>
 * @version $Revision$
 */
public class MockImageFunction implements ImageFunction {

   /**
    * Does nothing.
    * @param   startX   ignored.
    * @param   startY   ignored.
    * @param   deltaX   ignored.
    * @param   deltaY   ignored.
    * @param   countX   ignored.
    * @param   countY   ignored.
    * @param   element   ignored.
    * @param   real   ignored.
    * @param   imag   ignored.
    */
   public void getElements(float startX, float startY,
                           float deltaX, float deltaY,
                           int countX, int countY,
                           int element,
                           float[] real, float[] imag) {
   // do nothing
      }

   /**
    * Does nothing.
    * @param   startX   ignored.
    * @param   startY   ignored.
    * @param   deltaX   ignored.
    * @param   deltaY   ignored.
    * @param   countX   ignored.
    * @param   countY   ignored.
    * @param   element   ignored.
    * @param   real   ignored.
    * @param   imag   ignored.
    */
   public void getElements(double startX, double startY,
                           double deltaX, double deltaY,
                           int countX, int countY,
                           int element,
                           double[] real, double[] imag) {
   // do nothing
      }

   /**
    * Does nothing.
    * @return   always <em>0</em>.
    */
   public int getNumElements() {
      return 0;
      }

   /**
    * Does nothing.
    * @return   always {@code false}.
    */
   public boolean isComplex() {
      return false;
      }

   }
